package aps

import glory.xxd.Utils

class SearchSelfOutPutController {
    def commentService
    /**
     * <EqpId>1FW0801</EQPID>
     <USERNAME>123</LOTID>
     <Materials></.Materials>
     */
    def index() {
        def USERNAME = params.USERNAME?:""
        print USERNAME

        def body = CommentParams.newInstance()
        body.setUSERNAME(USERNAME)

        String logUUID =  Utils.getUUID();
        Header header = Header.newInstance()
        header.setMESSAGENAME("SearchSelfOutPut");
        header.setTRANSACTIONID(logUUID);
        header.setUSERNAME("Client")

        def json = commentService.getJsonByObjectForQueue2Queue(logUUID,header,body)
        //print json
        render json
    }
}
